//
//  StrategyDetailFirstCell.m
//  Full_House
//
//  Created by l-l on 15-6-5.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "StrategyDetailFirstCell.h"

@implementation StrategyDetailFirstCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.titleLable = [[UILabel alloc]init];
        [self.contentView addSubview:self.titleLable];
        [_titleLable release];
        
        self.userLable = [[UILabel alloc] init];
        [self.contentView addSubview:self.userLable];
        [_userLable release];
        
        self.userImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.userImage];
        [_userImage release];
        
        self.desLable = [[UILabel alloc] init];
        [self.contentView addSubview:self.desLable];
        [_desLable release];
        
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat width = self.contentView.frame.size.width;
    CGFloat height = self.contentView.frame.size.height / 3;
    
    self.titleLable.frame = CGRectMake(0, 0, width, height - 20);
    self.userImage.frame = CGRectMake(0, height - 20, width / 5, height);
    self.userLable.frame = CGRectMake(width / 5 + 5, height - 20, width / 2, height);
    self.desLable.frame = CGRectMake(0, height * 2 - 20, width, height + 20);
    
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
